﻿<UserControl x:Class="Xpom_Xpum__Integrated_Development_Environment.View.Controls.ProjectExplorerView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300"
             xmlns:local="clr-namespace:Xpom_Xpum__Integrated_Development_Environment.Model.Controls"
             xmlns:sys="clr-namespace:System;assembly=mscorlib">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <ToolBar Grid.Row="0" Height="26" HorizontalAlignment="Stretch" Name="toolBar1" VerticalAlignment="Top" />
        <TreeView ItemsSource="{Binding Path=Projects}" Grid.Row="1" HorizontalAlignment="Stretch" Name="treeView1" VerticalAlignment="Stretch">
            <TreeView.Resources>
                <HierarchicalDataTemplate DataType="{x:Type local:ProjectModel}" ItemsSource="{Binding FilesAndDirs}">
                    <TextBlock Text="{Binding Path=Name}" />
                </HierarchicalDataTemplate>
                <DataTemplate DataType="{x:Type sys:String}" >
                    <TextBlock Text="{Binding}" />
                </DataTemplate>
            </TreeView.Resources>
        </TreeView>
    </Grid>
</UserControl>
